//定义组件
define(function (require, exports, module) {

    var api = {
        //后期直接变成ajax
        getTree: function () {
            return data.tree;
        }
    };

    var data = {
        tree: [{
            menuName: '卡片演示',
            level: 1,
            url: '03_card.html',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            children: []
        },
        {
            menuName: '内容分发',
            level: 1,
            url: '16_slot.html',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            children: []
        },
        {
            menuName: 'Tab式组件切换',
            level: 1,
            url: '04_tab.html',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            children: []
        }, {
            menuName: '单面组件路由',
            level: 1,
            url: '05_single.html',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            children: []
        }, {
            menuName: '路由刷新策略',
            level: 1,
            url: '06_refreshRoute.html',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            children: []
        },
        {
            menuName: '参数传递',
            level: 1,
            url: '07_01_trans.html',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            children: []
        },
        {
            menuName: '事件向上传递',
            level: 1,
            url: '07_emmit.html',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            children: []
        },
        //  {
        //     menuName: '事件向下传递',
        //     level: 1,
        //     url: '07_02_broadcast.html',
        //     iconCls: 'fa-cube',
        //     collapsed: false,
        //     active: false,
        //     children: []
        // },
        {
            menuName: 'ShowCode',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '08_showcode.html',
            children: []
        }, {
            menuName: 'Echart',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '09_echart.html',
            children: []
        }, {
            menuName: '负载测试',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '10_nginx.html',
            children: []
        }, {
            menuName: '混入',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '10_mixins.html',
            children: []
        }, {
            menuName: 'element',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '12_element.html',
            children: []
        }, {
            menuName: 'ivew',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '13_iview.html',
            children: []
        }, {
            menuName: 'directive指令',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '14_directive.html',
            children: []
        }, {
            menuName: '键盘监听',
            level: 1,
            // iconCls: 'fa-bar-chart-o',
            iconCls: 'fa-cube',
            collapsed: false,
            active: false,
            url: '15_keycode.html',
            children: []
        }

        ]
    };

    module.exports = api;

});